<form class="layui-form" method="post" lay-filter="baseForm" id="baseForm">
    <input type="hidden" name="id" id="id"/>
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>基础信息</span></div>
    <div class="layui-card-body">
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">客户编号</label>
                <div class="layui-input-block">
                    <input name="code" id="code" class="layui-input" maxlength="10"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">公司名称</label>
                <div class="layui-input-block">
                    <input name="name" id="name" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">英文名称</label>
                <div class="layui-input-block">
                    <input name="nameEn" id="nameEn" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">社会信用代码</label>
                <div class="layui-input-block">
                    <input name="socialNo" id="socialNo" class="layui-input" maxlength="18"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">海关注册编码</label>
                <div class="layui-input-block">
                    <input name="customsCode" id="customsCode" class="layui-input" maxlength="10"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">检验检疫编码</label>
                <div class="layui-input-block">
                    <input name="ciqNo" id="ciqNo" class="layui-input" maxlength="10"/>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">公司法人</label>
                <div class="layui-input-block">
                    <input name="legalPerson" id="legalPerson" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">公司电话</label>
                <div class="layui-input-block">
                    <input name="tel" id="tel" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">公司传真</label>
                <div class="layui-input-block">
                    <input name="fax" id="fax" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <label class="layui-form-label">公司地址</label>
                <div class="layui-input-block">
                    <input name="address" id="address" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <label class="layui-form-label">英文地址</label>
                <div class="layui-input-block">
                    <input name="addressEn" id="addressEn" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">销售人员</label>
                <div class="layui-input-block">
                    <input name="salePersonName" id="salePersonName" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">商务人员</label>
                <div class="layui-input-block">
                    <input name="busPersonName" id="busPersonName" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">认领时间</label>
                <div class="layui-input-block">
                    <input name="claimDate" id="claimDate" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-row zm-hide">
            <div class="layui-col-md4">
                <label class="layui-form-label">签约时间</label>
                <div class="layui-input-block">
                    <input name="signDate" id="signDate" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">首次下单时间</label>
                <div class="layui-input-block">
                    <input name="firstOrderDate" id="firstOrderDate" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">最近下单时间</label>
                <div class="layui-input-block">
                    <input name="endOrderDate" id="endOrderDate" class="layui-input"/>
                </div>
            </div>
        </div>

        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">货款额度</label>
                <div class="layui-input-block">
                    <input name="goodsQuota" id="goodsQuota" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">税款额度</label>
                <div class="layui-input-block">
                    <input name="taxQuota" id="taxQuota" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">

            </div>
        </div>

    </div>

    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>联系人信息</span></div>
    <div class="layui-card-body">
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">联系人</label>
                <div class="layui-input-block">
                    <input name="linkPerson" id="linkPerson" class="layui-input" placeholder="联系人" clear-val/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">联系电话</label>
                <div class="layui-input-block">
                    <input name="linkTel" id="linkTel" class="layui-input" placeholder="联系电话" clear-val/>
                </div>
            </div>
            <div class="layui-col-md4">

            </div>
        </div>

        <div class="layui-row">
            <div class="layui-col-md12">
                <label class="layui-form-label">联系地址</label>
                <div class="layui-input-block">
                    <input name="linkAddress" id="linkAddress" class="layui-input" placeholder="联系地址" clear-val/>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>开票信息</span></div>
    <div class="layui-card-body">
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">纳税人识别号</label>
                <div class="layui-input-block">
                    <input name="taxpayerNo" id="taxpayerNo" class="layui-input" maxlength="18"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">开户银行</label>
                <div class="layui-input-block">
                    <input name="invoiceBankName" id="invoiceBankName" class="layui-input"/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">银行账号</label>
                <div class="layui-input-block">
                    <input name="invoiceBankAccount" id="invoiceBankAccount" class="layui-input"/>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md4">
                <label class="layui-form-label">开票电话</label>
                <div class="layui-input-block">
                    <input name="invoiceBankTel" id="invoiceBankTel" class="layui-input" placeholder="开票电话" clear-val/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">开票地址</label>
                <div class="layui-input-block">
                    <input name="invoiceBankAddress" id="invoiceBankAddress" class="layui-input" placeholder="开票地址" clear-val/>
                </div>
            </div>
            <div class="layui-col-md4">
                <label class="layui-form-label">开票要求</label>
                <div class="layui-input-block">
                    <input name="invoiceMemo" id="invoiceMemo" class="layui-input" placeholder="开票要求" clear-val/>
                </div>
            </div>
        </div>
    </div>
</form>
<form class="layui-form" method="post" id="bankForm">
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-truck"></i>银行信息</span></div>
    <div class="layui-card-body">
        <table class="layui-hide" id="bank-list" lay-filter="bank-list"></table>
    </div>
</form>
<form class="layui-form" method="post" id="deliveryForm">
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-truck"></i>进口国内收货信息 / 出口国内提货信息</span></div>
    <div class="layui-card-body">
        <table class="layui-hide" id="delivery-info-list" lay-filter="delivery-info-list"></table>
    </div>
</form>
<form class="layui-form" method="post" id="abroadDeliveryForm">
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-truck"></i>出口境外收货信息</span></div>
    <div class="layui-card-body">
        <table class="layui-hide" id="abroad-delivery-info-list" lay-filter="abroad-delivery-info-list"></table>
    </div>
</form>
<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>附件资料</span></div>
<div class="layui-card-body">
    <div class="layui-row">
        <fieldset class="layui-elem-field">
            <legend>三证资料</legend>
            <div class="layui-field-box">
                <div class="upload-area" id="cus_business"></div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>开票资料</legend>
            <div class="layui-field-box">
                <div class="upload-area" id="cus_invoice"></div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>法人身份证</legend>
            <div class="layui-field-box">
                <div class="upload-area" id="cus_legal_id"></div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>其它资料</legend>
            <div class="layui-field-box">
                <div class="upload-area" id="cus_other"></div>
            </div>
        </fieldset>
    </div>
</div>

<script type="text/html" id="disabledTemp">
    {{#if(d.disabled==false){}}
    <span class="layui-badge">启用</span>
    {{#}else{ }}
    <span class="layui-badge layui-bg-gray">禁用</span>
    {{#}}}
</script>
<script type="text/html" id="isDefaultTemp">
    {{#if(d.isDefault==true){}}
    <span class="layui-badge"><i class="fa fa-check"></i></span>
    {{#}}}
</script>